﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Desktop.aspx.cs" Inherits="ExamAnalysis.Desktop" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
 <script type="text/javascript">
     var tile = function () {
         Ext.ComponentQuery.query('desktop')[0].tileWindows();
     };

     var cascade = function () {
         Ext.ComponentQuery.query('desktop')[0].cascadeWindows();
     };

     var hide = function () {
         Ext.ComponentQuery.query('desktop')[0].ArrangeIconicWindows();
     }; 
    </script>
     <link href="Styles/desktop.css" rel="stylesheet" type="text/css" />
    <title>上财烽火队 - 中小学考试分析系统</title>
</head>
<body>
     <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <ext:Desktop ID="Desktop1" runat="server"  Visible="True" Width="1020" Height="768">
            <Modules>
                <ext:DesktopModule ModuleID="Hello" AutoRun="true">
                    <Window>
                        <ext:Window ID="Window1" runat="server" 
                            Plain="False"
                            Padding="10"
                            Width="420"
                            Height="290"                                                        
                            Title="欢迎您" 
                            CloseAction="Destroy" 
                            Maximizable="false" 
                            Minimizable="false" 
                            Shadow="False">
                            <Content>
                               <img src="Images/main/welcome-small.jpg" alt="welcome" />
                            </Content>
                        </ext:Window>
                    </Window>
                </ext:DesktopModule>

                <ext:DesktopModule ModuleID="Score">
                    <Shortcut Name="成绩查询" SortIndex="3" IconCls="x-paper-shortcut" >
                    </Shortcut>
                    <Launcher Text="成绩查询" Icon="Find" />
                    <Window>
                        <ext:Window ID="Window3" runat="server"
                            Title = "成绩查询"
                            Width = "1200"
                            Height = "550"
                            CloseAction = "Destroy"
                            Shadow="False"
                            BodyStyle="background-color:white"
                          >
                          <Loader ID="Loader1" runat="server" Url="Reports/MicroStudentReport/Score.aspx">
                          </Loader>
                            </ext:Window>
                        </Window>
                </ext:DesktopModule>

                <ext:DesktopModule ModuleID="Input">
                    <Shortcut Name="数据录入" SortIndex="2"  IconCls="x-note-shortcut">
                    </Shortcut>
                    <Launcher Text="数据录入" Icon="Add" />
                    <Window>
                        <ext:Window ID="Window2" runat="server"
                            Title = "数据录入"
                            Width = "1200"
                            Height = "550"
                            CloseAction = "Destroy"
                            Shadow="False"
                            BodyStyle="background-color:white"
                          >
                          <Loader ID="Loader2" runat="server" Url="Input/Default.aspx">
                          </Loader>
                            </ext:Window>
                        </Window>
                </ext:DesktopModule>

                <ext:DesktopModule ModuleID="Manage">
                    <Shortcut Name="数据维护" SortIndex="4" IconCls="x-home-shortcut">
                    </Shortcut>
                    <Launcher Text="数据维护" Icon="Clock" />
                    <Window>
                        <ext:Window ID="Window4" runat="server"
                            Title = "数据维护"
                            Width = "1200"
                            Height = "550"
                            CloseAction = "Destroy"
                            Shadow="False"
                            BodyStyle="background-color:white"
                            >
                             <Loader ID="Loader3" runat="server" Url="Manage/Default.aspx">
                          </Loader>
                            </ext:Window>
                        </Window>
                </ext:DesktopModule>

                <ext:DesktopModule ModuleID="Report">
                    <Shortcut Name="成绩分析" SortIndex="5" IconCls="x-status-shortcut">
                    </Shortcut>
                    <Launcher Text="成绩分析" Icon="RubyKey" />
                    <Window>
                        <ext:Window ID="Window5" runat="server"
                            Title = "成绩分析"
                            Width = "1200"
                            Height = "550"
                            CloseAction = "Destroy"
                            AutoScroll="True"
                            Shadow="False"
                            BodyStyle="background-color:white">
                            <Loader ID="Loader4" runat="server" Url="Reports/Default.aspx">
                          </Loader>
                            </ext:Window>
                        </Window>
                </ext:DesktopModule>

                <ext:DesktopModule ModuleID="Admin">
                    <Shortcut Name="系统管理" SortIndex="7" IconCls="x-im-shortcut" >
                    </Shortcut>
                    <Launcher Text="系统管理" Icon="Server" />
                    <Window>
                        <ext:Window ID="Window7" runat="server"
                            Title = "系统管理"
                            Width = "1200"
                            Height = "550"
                            CloseAction = "Destroy"
                            Shadow="False"
                            BodyStyle="background-color:white"
                            >
                            <Loader ID="Loader5" runat="server" Url="Manage/ManagerDefault.aspx">
                          </Loader>
                            </ext:Window>
                        </Window>
                </ext:DesktopModule>

                <ext:DesktopModule ModuleID="Help">
                    <Shortcut Name="系统帮助" SortIndex="8" IconCls="x-news-shortcut">
                    </Shortcut>
                    <Launcher Text="系统帮助" Icon="Help" />
                    <Window>
                        <ext:Window ID="Window8" runat="server"
                            Title = "系统帮助"
                            Width = "1200"
                            Height = "550"
                            CloseAction = "Destroy"
                            Shadow="False"
                            BodyStyle="background-color:white"
                            >
                            <Loader ID="Loader6" runat="server" Url="Help/Default.aspx">
                          </Loader>
                            </ext:Window>
                        </Window>
                </ext:DesktopModule> 

                <ext:DesktopModule ModuleID="Setting">
                <Launcher Text="个人信息" Icon="ApplicationForm" />
                    <Window>
                        <ext:Window ID="Window6" runat="server"
                            Title = "个人信息"
                            Width = "1200"
                            Height = "550"
                            CloseAction = "Destroy"
                            Shadow="False"
                            BodyStyle="background-color:white"
                            >
                            <Loader ID="Loader7" runat="server" Url="Account/Default.aspx">
                          </Loader>
                            </ext:Window>
                        </Window>
                </ext:DesktopModule> 
            </Modules>
                     
            <DesktopConfig Wallpaper="Images/resources/desktop1.jpg" ShortcutDragSelector="true">
                <ShortcutDefaults IconCls="x-default-shortcut" />
                <ContextMenu>
                    <ext:Menu ID="Menu1" runat="server">
                        <Items>
                            <ext:MenuItem ID="MenuItem2" runat="server" Text="并列显示" Handler="tile" Icon="ApplicationTileVertical" />
                            <ext:MenuItem ID="MenuItem3" runat="server" Text="层叠显示" Handler="cascade" Icon="ApplicationCascade" />
                        </Items>
                    </ext:Menu>
                </ContextMenu>
                <Content>
                   <ext:Image ID="Image2" runat="server" ImageUrl="Images/resources/powered.png" StyleSpec="position:absolute;right:10px;bottom:20px;"/> 
                </Content>
            </DesktopConfig>
            <StartMenu  Title="菜单" runat="server" ID="StartMenu"  Icon="Paintbrush" Height="300">
                <ToolConfig>
                    <ext:Toolbar ID="Toolbar1" runat="server" Width="100">
                        <Items>
                            <ext:Button ID="Button2" runat="server" Text="登出" Icon="Key" >
                                <DirectEvents>
                                    <Click OnEvent="Logout_Click">
                                    </Click>
                                </DirectEvents>
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </ToolConfig>
            </StartMenu>
            <TaskBar TrayWidth="100">
                <CustomConfig>
                    <ext:ConfigItem Name="startBtnText" Value="开始" Mode="Value"></ext:ConfigItem>
                </CustomConfig>
                <QuickStart>
                    <ext:Toolbar ID="Toolbar2" runat="server">
                        <Items>
                            <ext:Button ID="Button1" runat="server" Handler="tile" Icon="ApplicationTileVertical">
                                <QTipCfg Text="并列显示" />
                            </ext:Button>
                            <ext:Button ID="Button3" runat="server" Handler="cascade" Icon="ApplicationCascade">
                                <QTipCfg Text="层叠显示" />
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </QuickStart>
            </TaskBar>
        </ext:Desktop>
    </form>  
</body>
</html>
